


var transform = function(){

	this.popIn = function(p){
		return  1.2 - 2.25*(p-.3)*(p-.3);
	};

	this.popOut = function(p){
		return 1.2 - 2.25*(p-.7)*(p-.7);
	};

	this.expEaseIn = function(p){
		return 1.28*Math.atan(p);
	};

	this.easeIn = function(p){
		return Math.pow(p,.4);
	};

	this.wiggle  = function(p,oscil){
		//if(p==0)alert(1 + .5*Math.sin(Math.pow(2,oscil)*Math.PI*p));
		//var q = parseFloat(1 + eval(.5*Math.sin(Math.pow(2,oscil)*Math.PI*p)));
		var q = parseFloat(1 + eval(.2*Math.sin(Math.pow(2,oscil)*Math.PI*p)));
		//return 1 + eval(.5*Math.sin(Math.pow(2,oscil)*Math.PI*p));
		return q;
	};

	this.springY = function(p,oscil){
		return p;
	};
    
    this.popInOut= function(p){
        return (p<0.5) ? this.popIn(p*2): this.popOut((p-.5)*2);
    };


}
